package com.ftg.learn.assess.client;

import com.ftg.learn.assess.result.Result;
import com.ftg.learn.assess.vo.FileUploadVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@FeignClient(name = "hiit-upload")
public interface UploadClient {
    @PostMapping("/upload/batch")
    Result<List<FileUploadVO>> uploadBatch(@RequestParam("files") List<MultipartFile> files);
}
